package com.loser.csp.service.backmanager.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.loser.csp.dal.dao.DomainMapper;
import com.loser.csp.dal.model.Domain;
import com.loser.csp.service.backmanager.DomianServices;
@Component
public class DomainServicesImpl  implements DomianServices{
    @Autowired
    private DomainMapper domainMapper;
    
    @Override
    public int deleteByDomainid(Integer domainid) {
        return domainMapper.deleteByDomainid(domainid);
    }

    @Override
    public int insert(Domain record) {
        return domainMapper.insert(record);
    }

    @Override
    public Domain selectByDomainid(Integer domainid) {
        return domainMapper.selectByDomainid(domainid);
    }

    @Override
    public int updateByDomain(Domain record) {
        return domainMapper.updateByDomain(record);
    }

}
